// 封装登录接口
import request from '@/utils/request.js'

/**
 * 发送验证码
 * @param {*} params { code }
 */
export const getMobileCode = params => {
  return request({
    url: '/captcha/sent',
    params
  })
}

/**
 * 登录
 * @param {*} params {}
 */
export const login = params => {
  return request({
    url: '/login/cellphone',
    method: 'POST',
    params
  })
}

export const reg = params => {
  return request({
    url: '/register/cellphone',
    params
  })
}
